home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / BORLAND TURBO / RTLWIN32.PAK / XCMCEXT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.9 KB  |  111 lines

  1. /*
  2.  *  XCMCEXT.H
  3.  *
  4.  *  Purpose:
  5.  *  Specifies constants and data structures for CMC Common extensions
  6.  *
  7.  */
  8.  
  9. #ifndef _XCMCEXT_H
  10. #define _XCMCEXT_H
  11. #pragma option -b
  12.  
  13. #ifdef __BORLANDC__
  14. #pragma option -b.
  15.   #include <pshpack8.h>
  16. #pragma option -b
  17. #endif
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. /* COMMON EXTENSIONS DECLARATIONS */
  24.  
  25. #define CMC_XS_COM                  ((CMC_uint32) 0)
  26.  
  27. /* FUNCTION EXTENSIONS */
  28.  
  29. /* Query for extension support in implementation */
  30. #define CMC_X_COM_SUPPORT_EXT       ((CMC_uint32) 16)
  31.  
  32. typedef struct {
  33.     CMC_uint32  item_code;
  34.     CMC_flags   flags;
  35. } CMC_X_COM_support;
  36.  
  37. #define CMC_X_COM_SUPPORTED             ((CMC_flags) 1)
  38. #define CMC_X_COM_NOT_SUPPORTED         ((CMC_flags) 2)
  39. #define CMC_X_COM_DATA_EXT_SUPPORTED    ((CMC_flags) 4)
  40. #define CMC_X_COM_FUNC_EXT_SUPPORTED    ((CMC_flags) 8)
  41. #define CMC_X_COM_SUP_EXCLUDE           ((CMC_flags) 16)
  42.  
  43. /* Get back a structure with configuration data */
  44.  
  45. #define CMC_X_COM_CONFIG_DATA       ((CMC_uint32) 17)
  46.  
  47. typedef struct {
  48.     CMC_uint16              ver_spec;
  49.     CMC_uint16              ver_implem;
  50.     CMC_object_identifier FAR *character_set;
  51.     CMC_enum                line_term;
  52.     CMC_string              default_service;
  53.     CMC_string              default_user;
  54.     CMC_enum                req_password;
  55.     CMC_enum                req_service;
  56.     CMC_enum                req_user;
  57.     CMC_boolean             ui_avail;
  58.     CMC_boolean             sup_nomkmsgread;
  59.     CMC_boolean             sup_counted_str;
  60. } CMC_X_COM_configuration;
  61.  
  62.  
  63. /* Check to see if/when a recipient can be sent */
  64. #define CMC_X_COM_CAN_SEND_RECIP    ((CMC_uint32) 18)
  65.  
  66. #define CMC_X_COM_READY             ((CMC_enum) 0)
  67. #define CMC_X_COM_NOT_READY         ((CMC_enum) 1)
  68. #define CMC_X_COM_DEFER             ((CMC_enum) 2)
  69.  
  70. /* Save a message to the inbox */
  71.  
  72. #define CMC_X_COM_SAVE_MESSAGE      ((CMC_uint32) 19)
  73.  
  74. /* Get back a message structure for the message just sent */
  75.  
  76. #define CMC_X_COM_SENT_MESSAGE      ((CMC_uint32) 20)
  77.  
  78. /* DATA EXTENSIONS */
  79.  
  80. /* attach a receive date to message and message summary structures */
  81. #define CMC_X_COM_TIME_RECEIVED     ((CMC_uint32) 128)
  82.  
  83. /* attach a unique id to resolved recipient structures */
  84. #define CMC_X_COM_RECIP_ID          ((CMC_uint32) 129)
  85.  
  86. /* set character position in the message text to display an icon
  87.    associated with a particular attachment */
  88.  
  89. #define CMC_X_COM_ATTACH_CHARPOS    ((CMC_uint32) 130)
  90.  
  91. #define CMC_X_COM_PRIORITY          ((CMC_uint32) 131)
  92.  
  93. #define CMC_X_COM_NORMAL            ((CMC_enum) 0)
  94. #define CMC_X_COM_URGENT            ((CMC_enum) 1)
  95. #define CMC_X_COM_LOW               ((CMC_enum) 2)
  96.  
  97. #ifdef __cplusplus
  98. }       /* extern "C" */
  99. #endif
  100.  
  101. #ifdef __BORLANDC__
  102. #pragma option -b.
  103.   #include <poppack.h>
  104. #pragma option -b
  105. #endif
  106.  
  107. #pragma option -b.
  108. #endif  /* _XCMCEXT_H */
  109.  
  110.  
  111.